//
//  TableViewHeaderFooterView.swift
//  ExtraLife
//
//  Created by QY on 2019/8/1.
//  Copyright © 2019 HeYi. All rights reserved.
//

import UIKit
import RxSwift
import RxCocoa
class TableViewHeaderFooterView: UITableViewHeaderFooterView {

    public var disposeBag = DisposeBag()

    override init(reuseIdentifier: String?) {
        super.init(reuseIdentifier: reuseIdentifier)
        makeUI()
    }

    required public init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        makeUI()
    }

    func makeUI() {
        self.backgroundView = UIView(frame: bounds)
        self.backgroundView?.backgroundColor = .white
        updateUI()
    }

    func updateUI() {
        setNeedsDisplay()
    }

    override func prepareForReuse() {
        super.prepareForReuse()
        disposeBag = DisposeBag()
    }
}
